package com.lagou.edu.pojo;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName: Context
 * @Auther: Jerry
 * @Date: 2020/8/5 22:55
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class Context {

    private String path;
    private String contextName;
    private Map<String, Wrapper> wrapperMap = new HashMap<>();

    public Context() {
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getContextName() {
        return contextName;
    }

    public void setContextName(String contextName) {
        this.contextName = contextName;
    }

    public Map<String, Wrapper> getWrapperMap() {
        return wrapperMap;
    }

    public void setWrapperMap(Map<String, Wrapper> wrapperMap) {
        this.wrapperMap = wrapperMap;
    }

    public void addWrapper(Wrapper wrapper) {
        wrapperMap.put(wrapper.getPath(), wrapper);
    }
}
